﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<SinBiota.Model.Entities.User>" %>
<%@ Import Namespace="Localization" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%: Strings.UserPage %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

        <h3><%: Strings.ManageUserAccount %></h3>
            <%: Html.ActionLink(Strings.ChangePassword, "ChangePassword", "User", null, new { Class = ViewData["actionButtonClass"] })%>
            <%: Html.ActionLink("Log Off", "LogOff", "User", null, new { Class = ViewData["actionButtonClass"] })%>
            <br /><br />
        <h3><%: Strings.Occurrences %></h3>
                <%: Html.ActionLink(Strings.Create + " " + Strings.Occurrence, "Create", "Occurrence", null, new { Class = ViewData["actionButtonClass"] })%>  
                <%: Html.ActionLink(Strings.MyOccurrences, "CurrentUser", "Occurrence", null, new { Class = ViewData["actionButtonClass"] })%> 

                <br /><br />
        <h3><%: Strings.Projects %></h3>
        
        <% foreach (var project in Model.MemberProjects)
           {%>
        <div class="panel">
        <big><b><%:Strings.Title %>:</b> <i><%: project.Name %></i></big> <span style="margin-left:2em" class="green label round"><%:Strings.Member %></span><br /><br />
                <%: Html.ActionLink(string.Format("{0}", Strings.SearchOccurrences), "Project", "Occurrence", new { id = project.Id }, new { Class = ViewData["actionButtonClass"] })%>
                <br /><br />
        <%
           }%>
        <% foreach(var project in Model.CoordinatorProjects) { %>
        <div class="panel">
        <big><b><%:Strings.Title %>:</b> <i><%: project.Name %></i></big> <span style="margin-left:2em" class="green label round"><%:Strings.Coordinator %></span><br /><br />
                    <%: Html.ActionLink(string.Format("{0}", Strings.SearchOccurrences), "Project", "Occurrence", new { id = project.Id }, new { Class = ViewData["actionButtonClass"] })%>
                    <%: Html.ActionLink(string.Format("{0} {1}", Strings.Manage, Strings.Users), "Manage", "Project", new { id = project.Id }, new { Class = ViewData["actionButtonClass"] })%>
                    <%: Html.ActionLink(string.Format("{0} {1}", Strings.Edit, Strings.Project), "Edit", "Project", new { id = project.Id }, new { Class = ViewData["actionButtonClass"] })%>
        <br /><br /></div>
            <% }%>



</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
